package com.member.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.member.shop.domain.SysBizOrderGoods;

import java.util.List;

/**
 * 订单商品Service接口
 *
 * @author lixinchen
 * @date 2024-01-08
 */
public interface ISysBizOrderGoodsService extends IService<SysBizOrderGoods> {
    /**
     * 查询订单商品
     *
     * @param id 订单商品主键
     * @return 订单商品
     */
    public SysBizOrderGoods selectSysBizOrderGoodsById(Long id);

    /**
     * 查询订单商品列表
     *
     * @param sysBizOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<SysBizOrderGoods> selectSysBizOrderGoodsList(LambdaQueryWrapper<SysBizOrderGoods> queryWrapper);

    /**
     * 查询订单商品列表
     *
     * @param sysBizOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<SysBizOrderGoods> selectSysBizOrderGoodsList(SysBizOrderGoods sysBizOrderGoods);

    /**
     * 新增订单商品
     *
     * @param sysBizOrderGoods 订单商品
     * @return 结果
     */
    public int insertSysBizOrderGoods(SysBizOrderGoods sysBizOrderGoods);

    /**
     * 修改订单商品
     *
     * @param sysBizOrderGoods 订单商品
     * @return 结果
     */
    public int updateSysBizOrderGoods(SysBizOrderGoods sysBizOrderGoods);

    /**
     * 批量删除订单商品
     *
     * @param ids 需要删除的订单商品主键集合
     * @return 结果
     */
    public int deleteSysBizOrderGoodsByIds(Long[] ids);

    /**
     * 删除订单商品信息
     *
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteSysBizOrderGoodsById(Long id);
}